package com.mmall.controller.backend;

import com.mmall.common.ServerResponse;
import com.mmall.pojo.Simditor;
import com.mmall.service.ISimditorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by xinlong on 2017/10/23.
 */
@Controller
@RequestMapping("/manage/simditor")
public class SimditorManageController {

    @Autowired
    ISimditorService iSimditorService;

    @RequestMapping(value = "upload.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse uploadSimditor(Simditor simditor){
        return iSimditorService.insert(simditor);
    }
}
